package com.weimob.demo.admin.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by junxiao on 2016/12/31.
 */
@RestController
public class TestController {

    @RequestMapping(value="/login", method= RequestMethod.GET)
    public String login() {
        return "login Page";
    }

    @RequestMapping(value="/login", method= RequestMethod.POST)
    public String loginError() {
        return "login Failed";
    }

    @RequestMapping("home")
    public String home() {
        return "home";
    }

}
